package com.raychi.demo.util;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.raychi.demo.entity.Buyer;

public class BuyerUtil {
	
	public static Buyer createBuyer(ResultSet rs) throws SQLException {
		Buyer buyer;
		buyer = new Buyer();
		buyer.setName(rs.getString("name"));
		buyer.setMoney(rs.getInt("money"));
		buyer.setId(rs.getInt("id"));
		return buyer;
	}
}
